#include<stdio.h>
int main()
{
    int n, i, j;
    while (scanf_s("%d", &n) != EOF)
    {
        for (i = 1; i <= n + i; i++)
        {
            for (j = 0; j <n+2-i; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
        for (i = 1; i <=n; i++)
        {
            for (j =1; j <=i+1; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}